{extend name="layout/iframe" /}

{block name="content"}
<div class="layui-anim layui-anim-up">
    <div class="x-nav">
        <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="">商圈管理</a>
            <a><cite>商圈列表</cite></a>
        </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
            <i class="layui-icon" style="line-height:30px">ဂ</i>
        </a>
    </div>
    <div class="x-body">
        <div class="layui-row">
            <form class="layui-form layui-col-md12 x-so" method="get">
                <input class="layui-input" placeholder="开始日" name="begin_time" id="start" value="{$formget.begin_time ?: ''}">
                <input class="layui-input" placeholder="截止日" name="end_time" id="end" value="{$formget.end_time ?: ''}">
                <input type="text" name="globalName" placeholder="请输入商圈名" autocomplete="off" class="layui-input" value="{$formget.globalName ?: ''}">

                <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                <a href="{:url('admin/businessarea/getlist')}" class="layui-btn layui-btn-danger"><i class="icon iconfont"></i></a>
            </form>
        </div>
        <xblock>
            <!--<button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>-->
            <button class="layui-btn" onclick="x_admin_show('添加商圈','./add',900,650)"><i class="layui-icon"></i>添加</button>
            <span class="x-right" style="line-height:40px">共有数据：{$total} 条</span>
        </xblock>
        <table class="layui-table">
            <thead>
            <tr>
                <!--<th>-->
                    <!--<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>-->
                <!--</th>-->
                <th>商圈名称</th>
                <th>所在区域</th>
                <th>创建时间</th>
                <!--<th>启用</th>-->
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name='datas' id='vo'}
            <tr>
                <!--<td>-->
                    <!--<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='{$vo.id}'><i class="layui-icon">&#xe605;</i></div>-->
                <!--</td>-->
                <td>{$vo.globalName}</td>
                <td>{$vo.province}-{$vo.city}-{$vo.district}</td>
                <td>{$vo.createDate}</td>
                <!--<td class="td-status">-->
                    <!--<span class="layui-btn layui-btn-normal layui-btn-mini">已启用</span>-->
                <!--</td>-->
                <td class="td-manage">
                    <!--<a onclick="handle_stop(this,'{$vo.id}')" href="javascript:;"  title="启用">-->
                        <!--<i class="layui-icon">&#xe601;</i>-->
                    <!--</a>-->
                    <a title="编辑" onclick="x_admin_show('编辑','{:url('edit',['id'=>$vo.id])}',900,650)" href="javascript:;">
                        <i class="layui-icon">&#xe642;</i>
                    </a>
                    <!--<a title="删除" onclick="handle_del(this,'{$vo.id}')" href="javascript:;">-->
                        <!--<i class="layui-icon">&#xe640;</i>-->
                    <!--</a>-->
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>

        <div class="page">
            <div>
                {$datas->render()}
            </div>
        </div>
    </div>

    <script>
        var delete_url = "{:url('admin/businessarea/del')}";
    </script>
    <script src="__STATIC__/admin/pages/js/common.js" type="text/javascript"></script>
    <script src="__STATIC__/admin/pages/js/businessarea.js" type="text/javascript"></script>
</div>
{/block}